projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a0e043
)
Use text-mode for plaintext markup
author
Andrii Kolomoiets
<andreyk.mad@gmail.com>
Thu, 23 Apr 2020 20:41:22 +0000
(23:41 +0300)
committer
GitHub
<noreply@github.com>
Thu, 23 Apr 2020 20:41:22 +0000
(21:41 +0100)
* eglot.el (eglot--format-markup): Use text-mode for
plaintext markup.
GitHub-reference: close https://github.com/joaotavora/eglot/issues/444
lisp/progmodes/eglot.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/eglot.el
b/lisp/progmodes/eglot.el
index 13ee30723bcdeb7d5afc02880339dc6336c9f2c0..6d6f91f55aaa72b0876fedc9eb0ee0dd6baa4359 100644
(file)
--- a/
lisp/progmodes/eglot.el
+++ b/
lisp/progmodes/eglot.el
@@
-1109,6
+1109,7
@@
Doubles as an indicator of snippet support."
(list (plist-get markup :value)
(pcase (plist-get markup :kind)
("markdown" 'gfm-view-mode)
+ ("plaintext" 'text-mode)
(_ major-mode))))))
(with-temp-buffer
(insert string)